@echo off
chcp 65001 >nul
echo.
echo 🧪 Running Unit Tests...
echo.
cd backend
mvn clean test jacoco:report
echo.
echo ✅ Tests completed!
echo 📊 Coverage report: target\site\jacoco\index.html
echo.
if exist "target\site\jacoco\index.html" (
    echo 🚀 Opening coverage report...
    start target\site\jacoco\index.html
) else (
    echo ⚠️  Coverage report not found
)
pause